<%
/**
 * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
%>

<%@ include file="/init.jsp" %>

Code:

<br /><br />

<pre>&lt;liferay-ui:tabs
    names="One,Two,Three"
    refresh="&lt;%= false %&gt;"
&gt;
    &lt;liferay-ui:section&gt;
        One body
    &lt;/liferay-ui:section&gt;
    &lt;liferay-ui:section&gt;
        Two body
    &lt;/liferay-ui:section&gt;
    &lt;liferay-ui:section&gt;
        Three body
    &lt;/liferay-ui:section&gt;
&lt;/liferay-ui:tabs&gt;</pre>

<div class="separator"></div>

Result:

<br /><br />

<liferay-ui:tabs
	names="One,Two,Three"
	refresh="<%= false %>"
>
	<liferay-ui:section>
		Test move box
		
		
		
		
		<form action="<liferay-portlet:actionURL/>" method="post" name="<portlet:namespace />fm">
	plutoRaffaProvaDomenico
	
	<% 
   
   ArrayList demograficiLeftServiceL = new ArrayList();
   demograficiLeftServiceL.add(new KeyValuePair("1", "pippo"));
   demograficiLeftServiceL.add(new KeyValuePair("2", "pluto"));
   Collections.sort(demograficiLeftServiceL, new KeyValuePairComparator(false, true));
	 ArrayList demograficiRightServiceR = new ArrayList();
	 demograficiRightServiceR.add(new KeyValuePair("3", "paperino"));
   demograficiRightServiceR.add(new KeyValuePair("4", "clarabella"));
   Collections.sort(demograficiRightServiceR, new KeyValuePairComparator(false, true));

%>


<liferay-ui:input-move-boxes
formName="fm"
							leftTitle="what-they-can-do"
							rightTitle="what-they-cant-do"
							leftBoxName="current_actions_r"
							rightBoxName="available_actions_r"
							leftReorder="true"
							leftList="<%= demograficiLeftServiceL %>"
							rightList="<%= demograficiRightServiceR %>"
/>

</form>
		
		
		
		
		
		
		
		
		
		
		
		
		
		
	</liferay-ui:section>
	<liferay-ui:section>
		Two body
	</liferay-ui:section>
	<liferay-ui:section>
		Three body
	</liferay-ui:section>
</liferay-ui:tabs>

<div class="separator"></div>

&laquo; <a href="<portlet:renderURL />">Back</a>